import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import('@/views/layout/LayoutIndex.vue'),
      redirect: '/News/manage',
      children : [
        {path: '/News/manage',component: ()=>import('@/views/News/manage.vue')},
        {path: '/complain/complainList',component: ()=>import('@/views/complain/ComplainList.vue')}
      ]
    },
/*     { 
      //path:'/login'
      // component: () => import('@/views/login.vue')
    } */

  ]
})

export default router
